tests: Use g_free(), not free()
authorBenjamin Otte <otte@redhat.com>
Tue, 21 May 2019 05:20:45 +0000 (07:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 21 May 2019 05:23:30 +0000 (07:23 +0200)
Windows doesn't like that.

tests/rendernode.c
tests/showrendernode.c

index 4d69693c652a757cb6a08939092d0b83c6133585..49a6c8601c1379162ff64bc96f666501b12f997f 100644 (file)
@@ -22,7 +22,7 @@ deserialize_error_func (const GtkCssSection *section,
 
   g_warning ("Error at %s: %s", section_str, error->message);
 
-  free (section_str);
+  g_free (section_str);
 }
 
 
index bd1e502cd90efc0563f25ff1d8bc12e151cedf99..c05988c07d73aa63b3ed85e2a62e406c49dc0d40 100644 (file)
@@ -117,7 +117,7 @@ deserialize_error_func (const GtkCssSection *section,
 
   g_warning ("Error at %s: %s", section_str, error->message);
 
-  free (section_str);
+  g_free (section_str);
 }
 
 int